package exp1;

import java.util.ArrayList;
import java.util.Random;

/**
 * Created by 蜡笔小新丶 on 2017/9/25.
 */
public class ListSum {
    public static void main(String[] args) {
        merge merge = new merge();
        ArrayList<Integer> alist = new ArrayList<>();
        ArrayList<Integer> blist = new ArrayList<>();
        Random random = new Random();
        int add=0;
        for(int i=0;i<10;i++){
            add = random.nextInt(20);
            alist.add(add);
        }
        for(int i=0;i<5;i++){
            add = random.nextInt(20);
            blist.add(add);
        }
        merge.Sort(alist);
        System.out.println("alist = " + alist);
        merge.Sort(blist);
        System.out.println("blist = " + blist);
        System.out.println("Sum = " + merge.mergeSortedList(alist,blist));
    }
}
